package com.guigu.www.controller;


import com.guigu.www.pojo.TTjbg;
import com.guigu.www.service.TTjbgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yb
 * @since 2021-06-29
 */
@RestController
@CrossOrigin
public class TTjbgController {

    @Autowired
    private TTjbgService service;

    @PostMapping("seltjbg")
    public List<TTjbg> seltjbg(@RequestBody TTjbg tTjbg){
        System.out.println(service.seltjbg(tTjbg));
        return service.seltjbg(tTjbg);
    }
}

